namespace CoverageRunner.Console
{
    public class CodeCoverageParamsFactory
    {
        public static CodeCoverageParams Create(ArgumentParser argumentParser)
        {
            var codeCoverageParams = new CodeCoverageParams(argumentParser.Assemblies, argumentParser.TestRunner, argumentParser.Tests)
                                         {
                                             PathToCodeToInstrument = argumentParser.PathCodeToInstrument,
                                             CoverageXslt = argumentParser.CoverageXslt,
                                             ExePath = argumentParser.ExePath,
                                             OutputHtml = argumentParser.OutputHtml,
                                             OutputXml = argumentParser.OutputXml,
                                             SymbolsPath = argumentParser.SymbolsPath,
                                             VstsCoverageOutputFile = argumentParser.CoverageOutputFile,
                                             VsTsInstrLocation = argumentParser.VsTsInstrLocation
                                         };
            return codeCoverageParams;
        }
    }
}